//
//  DHBrandItemView.m
//  Dresshere
//
//  Created by ZhangPeng on 2018/1/3.
//  Copyright © 2018年 张朋. All rights reserved.
//

#import "DHBrandItemView.h"
#import "Cover.h"

@interface DHBrandItemView()

@property (weak, nonatomic) IBOutlet UIImageView *bgImgView;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *desLabel;

@end

@implementation DHBrandItemView

+ (DHBrandItemView *)shareDHBrandItemView{
    DHBrandItemView *view = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil] objectAtIndex:0];
    return view;
}

- (void)updateBrand:(Cover *)cover andArticleID:(NSString *)articleID{
    self.articleID = articleID;
    [self.bgImgView dh_setImageURLString:cover.pic];
    self.bgImgView.contentMode = UIViewContentModeScaleAspectFill;
}

@end
